<template>
  <div class="mytechnic">
    <van-cell>
      <template #title>
        <div class="item">
          <div class="word">
            <div class="top">
              {{ item.title }}
            </div>
            <div class="bottom">
              <div class="time">{{ item.updated_at | timeformat }}</div>
              <div class="look">
                <i class="iconfont iconicon_liulanliang"></i>
                <span>{{ item.read }}</span>
              </div>
              <div class="star">
                <van-icon name="good-job-o" />
                <span>{{ item.star }}</span>
              </div>
            </div>
          </div>
          <img class="img" :src="'http://localhost:1337' + item.cover" alt="" />
        </div>
      </template>
    </van-cell>
  </div>
</template>

<script>
export default {
  props: ['item']
}
</script>

<style lang="less">
.mytechnic {
  .item {
    display: flex;
    .word {
      flex: 1;
      .top {
        font-size: 16px;
      }
      .bottom {
        display: flex;
        align-items: center;
        margin-top: 15px;
        .time {
          flex: 1;
        }
        .look {
          margin: 0 10px;
        }
        .star {
          display: flex;
          align-items: center;
          margin: 0 10px;
        }
        span {
          margin-left: 5px;
        }
      }
    }
    .img {
      width: 125px;
      height: 83px;
      margin-left: 10px;
    }
  }
}
</style>
